package com.qianfeng.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 班级表
 */
public class Class {

  private Integer classId;
  private String className;
  private Integer subjectId;
  private Integer classCount;
  private Integer classLife;
  private String classAddress;
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date createTime;
  private Subject subject;

  @Override
  public String toString() {
    return "Class{" +
            "classId=" + classId +
            ", className='" + className + '\'' +
            ", subjectId=" + subjectId +
            ", classCount=" + classCount +
            ", classLife=" + classLife +
            ", classAddress='" + classAddress + '\'' +
            ", subject=" + subject +
            ", createTime=" + createTime +
            '}';
  }

  public Integer getClassId() {
    return classId;
  }

  public void setClassId(Integer classId) {
    this.classId = classId;
  }

  public String getClassName() {
    return className;
  }

  public void setClassName(String className) {
    this.className = className;
  }

  public Integer getSubjectId() {
    return subjectId;
  }

  public void setSubjectId(Integer subjectId) {
    this.subjectId = subjectId;
  }

  public Subject getSubject() {
    return subject;
  }

  public void setSubject(Subject subject) {
    this.subject = subject;
  }

  public Integer getClassCount() {
    return classCount;
  }

  public void setClassCount(Integer classCount) {
    this.classCount = classCount;
  }

  public Integer getClassLife() {
    return classLife;
  }

  public void setClassLife(Integer classLife) {
    this.classLife = classLife;
  }

  public String getClassAddress() {
    return classAddress;
  }

  public void setClassAddress(String classAddress) {
    this.classAddress = classAddress;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }



  public Class(Integer classId) {
    this.classId = classId;
  }

  public Class() {
  }

  public Class(Integer classId, String className, Integer subjectId, Subject subject, Integer classCount, Integer classLife, String classAddress, Date createTime) {
    this.classId = classId;
    this.className = className;
    this.subjectId = subjectId;
    this.subject = subject;
    this.classCount = classCount;
    this.classLife = classLife;
    this.classAddress = classAddress;
    this.createTime = createTime;
  }
}
